<?php

/*
 * 权限生成工具
 * <br />运行方式：http://localhost:8801/Tool/Incubator/SuPermissionSql_PHP_1_0/SoPermissionSql.php
 * 支持字段：[string]title:标题,[string]name:名称,[string]code:代码,[string]type:节点类型(M=菜单,O=操作,E=页面元素),[boolean]enable:是否可用,[string]url:链接地址,[array]children:子项目,[string]comment:注解
 * 说明：默认ismenu=true,如要特殊声明，需强制加上ismenu=false
 * @since 1.0 2014-7-11 by sutroon
 * @since 2.0 <2015-4-23> SoChishun 重新组织url
 * @since 3.0 <2015-7-30> SoChishun 新增code字段
 * @since 4.0 <2015-9-19> SoChishun 重构以适合RBAC自动拦截规则
 */
return array(
    array(
        'title' => '用户',
        'code' => 'M1_YH', // 一级菜单不要加厂商代号 2015-10-19 SoChishun Added.
        'children' => array(
            array(
                'title' => '用户管理',
                'code' => 'POrg_YH_M2_YHGL',
                'children' => array(
                    array('name' => 'User-index', 'level' => '2', 'title' => '用户管理', 'code' => 'YH_M3_YHGL', 'url' => 'User/user_list',
                        'O' => array(
                            array('name' => 'User-user_edit', 'level' => '3', 'title' => '新增用户', 'code' => 'YH_YHGL_XZZH', 'enable' => false),
                            array('name' => 'User-user_edit', 'level' => '3', 'title' => '编辑用户', 'code' => 'YH_YHGL_BJZH', 'enable' => false),
                            array('name' => 'User-user_delete', 'level' => '3', 'title' => '删除用户', 'code' => 'YH_YHGL_SCZH', 'enable' => false),
                        ),
                    ),
                    array('name' => 'PM-pm_list', 'level' => '2', 'title' => '站内信管理', 'code' => 'YH_M3_ZNXGL', 'url' => 'PM/pm_list'),
                    array('name' => 'Role-index', 'level' => '2', 'title' => '角色管理', 'code' => 'YH_M3_JSGL', 'url' => 'Role/role_list'),
                ),
            ),
        )
    ),
);
